package com.site.wisdom_construction.entity.safetyModule;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.sql.Date;

/**
 * @Description  
 * @Author  DYF
 * @Date 2022-01-13 
 */
@ApiModel (value ="安全巡检地点表实体类",description = "SafetyInspection")
public class SafetyInspection {
	/**
	 * 安全巡检地点ID
	 */
   	@ApiModelProperty(value = "安全巡检地点ID", name = "id")
	private Integer id;

	/**
	 * 项目id
	 */
   	@ApiModelProperty(value = "项目id", name = "projectId")
	private Integer projectId;

	/**
	 * 巡检地点名称
	 */
   	@ApiModelProperty(value = "巡检地点名称", name = "inspectionName")
	private String inspectionName;

	/**
	 * 巡检二维码
	 */
   	@ApiModelProperty(value = "巡检二维码", name = "inspectionCode")
	private String inspectionCode;

	/**
	 * 负责人
	 */
   	@ApiModelProperty(value = "负责人", name = "constructionPerson")
	private String constructionPerson;

	/**
	 * 负责人电话
	 */
   	@ApiModelProperty(value = "负责人电话", name = "constructionPersonPhone")
	private String constructionPersonPhone;

	/**
	 * 状态(0:未启用 1:启用)
	 */
	@ApiModelProperty(value = "状态(0:未启用 1:启用)", name = "status")
	private String status;

	/**
	 * 最后修改时间
	 */
	@ApiModelProperty(value = "最后修改时间", name = "updateTime")
	@JsonFormat(timezone = "GMT+8", pattern ="yyyy-MM-dd")
	private Date updateTime;

	public SafetyInspection(){ super(); }

	public SafetyInspection(Integer id, Integer projectId, String inspectionName, String inspectionCode, String constructionPerson, String constructionPersonPhone, String status, Date updateTime) {
		this.id = id;
		this.projectId = projectId;
		this.inspectionName = inspectionName;
		this.inspectionCode = inspectionCode;
		this.constructionPerson = constructionPerson;
		this.constructionPersonPhone = constructionPersonPhone;
		this.status = status;
		this.updateTime = updateTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public String getInspectionName() {
		return inspectionName;
	}

	public void setInspectionName(String inspectionName) {
		this.inspectionName = inspectionName;
	}

	public String getInspectionCode() {
		return inspectionCode;
	}

	public void setInspectionCode(String inspectionCode) {
		this.inspectionCode = inspectionCode;
	}

	public String getConstructionPerson() {
		return constructionPerson;
	}

	public void setConstructionPerson(String constructionPerson) {
		this.constructionPerson = constructionPerson;
	}

	public String getConstructionPersonPhone() {
		return constructionPersonPhone;
	}

	public void setConstructionPersonPhone(String constructionPersonPhone) {
		this.constructionPersonPhone = constructionPersonPhone;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "{" +
				"id=" + id +
				", projectId=" + projectId +
				", inspectionName='" + inspectionName + '\'' +
				", inspectionCode='" + inspectionCode + '\'' +
				", constructionPerson='" + constructionPerson + '\'' +
				", constructionPersonPhone='" + constructionPersonPhone + '\'' +
				", status='" + status + '\'' +
				", updateTime=" + updateTime +
				'}';
	}
}
